#define  _CRT_SECURE_NO_WARNINGS 1

#include "Stack.h"

void Test()
{
	ST s1;
	STInit(&s1);
	STPush(&s1, 1);
	STPush(&s1, 2);
	STPush(&s1, 3);
	STPush(&s1, 4);
	STPush(&s1, 5);
	
	while (!STEmpty(&s1))
	{
		printf("%d ", STTop(&s1));
		STPop(&s1);
	}
	printf("\n");

	STDestory(&s1);
}



int main()
{
	Test();
	return 0;
}